package org.springblade.modules.mes.quality.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class SCRequestDto {
	@JsonProperty("assembly_no")
	private String assemblyNo;

	@JsonProperty("assembly_name")
	private String assemblyName;

	@JsonProperty("assembly_barcode")
	private String assemblyBarcode;

	@JsonProperty("station")
	private String station;

	@JsonProperty("equip_no")
	private String equipNo;

	@JsonProperty("feature_no")
	private String featureNo;

	@JsonProperty("package_barcode")
	private String packageBarcode;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@JsonProperty(value = "start_time")
	private Date startTime;
	private List<AnalysisMaterialCompositionDto> materials;
}
